import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
const app = createApp(App)

//全局样式文件
import '@/assets/css/global.css'

//router路由
import router from './router'


//pinia
import { createPinia } from 'pinia'
const store = createPinia()

//element-plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue' // 导入图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

// 关键代码
import i18n from './locales/index' 
app.use(i18n)
app.use(ElementPlus)
app.use(router)
app.use(store)

app.mount('#app')




